Annotate gdk_motion_event_get_history() correctly
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 6 May 2020 18:28:33 +0000 (19:28 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 6 May 2020 22:05:19 +0000 (23:05 +0100)
We moved from returning a list to returning a C array, and this requires
a change in the annotations.

gdk/gdkevents.c

index f1cae55a4f442f1d2fca8f8a3b1991f518432209..d514e64b04c4680eab70dd565d1050f51b69962d 100644 (file)
@@ -2827,8 +2827,8 @@ gdk_motion_event_new (GdkSurface      *surface,
  * Retrieves the history of the @event motion, as a list of time and
  * coordinates.
  *
- * Returns: (transfer container) (element-type GdkTimeCoord) (nullable): a list
- *   of time and coordinates
+ * Returns: (transfer container) (array length=out_n_coords) (nullable): an
+ *   array of time and coordinates
  */
 GdkTimeCoord *
 gdk_motion_event_get_history (GdkEvent *event,